find the resultant vector